"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const config_1 = require("src/config");
const index_1 = require("../manager/index");
function FromQueue(config) {
    return (target, key, descriptor) => {
        config['type'] = 'FromQueue';
        config['target'] = config_1.getTaskInstance(target);
        config['method'] = key;
        index_1.queueManager.addQueueConfig(config.name, config);
        return descriptor;
    };
}
exports.default = FromQueue;
